<template>
  <div class="system-faq">
    <div class="breadcrumb">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/' }">Home</el-breadcrumb-item>
        <el-breadcrumb-item>FAQ</el-breadcrumb-item>
        <el-breadcrumb-item>{{ question }}</el-breadcrumb-item>
      </el-breadcrumb>
    </div>

    
    <div class="content">
      <div class="left">
        <div class="title">System Requirements FAQ</div>
        <section class="section">
          <h2>Why Check System Requirements?</h2>
          <p>APK and XAPK files are designed for specific Android versions and hardware configurations. Checking system requirements helps ensure:</p>
          <ul>
            <li>Your device can run the application smoothly</li>
            <li>Prevent installation failures</li>
            <li>Avoid performance issues</li>
          </ul>
        </section>
  
        <section class="section">
          <h2>How to Check System Requirements</h2>
          <div class="steps">
            <h3>1. Check Android Version</h3>
            <p>Go to your device's Settings → About Phone → Android version</p>
  
            <h3>2. Check Processor Architecture</h3>
            <p>Use system information apps (like CPU-Z) to verify your device's architecture (ARM, ARM64, or x86)</p>
  
            <h3>3. Check RAM and Storage</h3>
            <p>Go to Settings → Storage/Memory to verify available space and RAM size</p>
          </div>
        </section>
  
        <section class="section">
          <h2>Common System Requirements</h2>
          <div class="requirements">
            <div class="requirement-item">
              <h3>Android Version</h3>
              <p>Most apps require Android 7.0 or higher</p>
            </div>
            <div class="requirement-item">
              <h3>RAM</h3>
              <p>Minimum 2GB RAM recommended</p>
            </div>
            <div class="requirement-item">
              <h3>Storage</h3>
              <p>At least 500MB free space required</p>
            </div>
          </div>
        </section>
  
        <section class="section">
          <h2>What If Your Device Doesn't Meet Requirements?</h2>
          <ul>
            <li>Look for older versions of the app</li>
            <li>Consider upgrading your Android OS</li>
            <li>Look for alternative apps with lower requirements</li>
          </ul>
        </section>
      </div>
      <TopDownloads />
    </div>
  </div>
</template>

<script setup>
import TopDownloads from '@/components/TopDownloads.vue'
const route = useRoute()
const question = route.query.question

</script>

<style scoped lang="scss">
.system-faq {
  /* max-width: 800px; */
  margin: 0 auto;
  /* padding: 2rem; */
  .content {
    display: flex;
    gap: 5rem;
    margin-top: 2rem;
    .title {
      @include title;
    }
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 0;
    }
  }
}

.title {
  /* text-align: center; */
  margin-bottom: 2rem;
  color: #333;
}

.content {
  background: #fff;
  border-radius: 8px;
  /* padding: 2rem; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.section h3 {
  color: #34495e;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.steps {
  padding-left: 1.5rem;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.requirement-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

li {
  margin-bottom: 0.5rem;
}

p {
  line-height: 1.6;
  color: #666;
}
</style>